/**
 * 排行榜样式
 */
.rankings-list {
  width: 100%;
}

.my-ranking {
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  color: #fff;
}

.my-ranking .ant-typography {
  color: #fff;
}

.rankings-list-content {
  max-height: 600px;
  overflow-y: auto;
}

.ranking-item {
  padding: 12px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background-color: #fafafa;
}

.ranking-item.top-three {
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  padding: 16px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-bottom: none;
}

.ranking-item.current-user {
  background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
  border: 1px solid #1890ff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.ranking-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ranking-badge {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ranking-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.65);
}

.ranking-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.username {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.85);
}

.ranking-value {
  flex-shrink: 0;
  text-align: right;
}

/* 前三名动画效果 */
.ranking-item.top-three {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式布局 */
@media (max-width: 768px) {
  .rankings-list .ant-card-extra {
    margin-top: 8px;
  }

  .rankings-list .ant-card-head-title,
  .rankings-list .ant-card-extra {
    width: 100%;
  }

  .ranking-content {
    gap: 12px;
  }

  .ranking-badge {
    width: 40px;
  }

  .ranking-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .ranking-user .ant-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .ranking-item.top-three .ant-avatar {
    width: 42px !important;
    height: 42px !important;
  }

  .username {
    font-size: 14px;
  }

  .ranking-value {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .my-ranking {
    padding: 12px;
  }

  .ranking-item.top-three,
  .ranking-item.current-user {
    padding: 10px 8px;
  }

  .ranking-content {
    gap: 8px;
  }

  .user-info .ant-space {
    flex-wrap: wrap;
  }

  .ranking-value {
    min-width: 80px;
  }
}

/* 滚动条样式 */
.rankings-list-content::-webkit-scrollbar {
  width: 6px;
}

.rankings-list-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.rankings-list-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.rankings-list-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
